package com.lottery.htbc.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lottery.htbc.mapper.BetTaskMapper;
import com.lottery.htbc.mapper.ProfitAnalysisMapper;
import com.lottery.htbc.pojo.ProfitAnalysis;

@Service
public class ProfitAnalysisDao {

	@Autowired
	private ProfitAnalysisMapper profitAnalysisMapper;

	@Autowired
	private BetTaskMapper betTaskMapper;

	public void profitAnalysisByTask(){
		List<ProfitAnalysis> analysisRs=betTaskMapper.queryTaskConfigInfo();
		if(analysisRs!=null&&analysisRs.size()>0){
			profitAnalysisMapper.saveBatch(analysisRs);
		}
	}

}
